﻿// MIT License
// 开源地址：https://gitee.com/co1024/AbcMvc
// Copyright (c) 2021-2023 1024
// Abc.Mvc=Furion+EF+SqlSugar+Pear layui admin.

namespace Abc.Core.SeedData;

/// <summary>
/// 邮件发送配置
/// </summary>
public class EmailSendConfigSeedData : ISqlSugarEntitySeedData<SysEmailSendConfig>
{
    public IEnumerable<SysEmailSendConfig> HasData()
    {
        //return new[] {
        //    new SysEmailSendConfig(){Id=1, IsEnable=true,EmailSmtpHost="smtp.qq.com",EmailSmtpPort="465",EmailAccount="abc@qq.com",EmailPassword="123123",EmailIsHtml=true, EmailDisplayName="Abc.Admin",EmailIsSsl=true,CreationTime=DateTimeOffset.Now,CreatorUserId=0,CreatorUserName=""}
        //};
        return GetData();
    }

    public static IEnumerable<SysEmailSendConfig> GetData()
    {
        return new[] {
            new SysEmailSendConfig(){Id=1, IsEnable=true,EmailSmtpHost="smtp.qq.com",EmailSmtpPort="465",EmailAccount="abc@qq.com",EmailPassword="123123",EmailIsHtml=true, EmailDisplayName="Abc.Admin",EmailIsSsl=true,CreationTime=DateTimeOffset.Now,CreatorUserId=0,CreatorUserName=""}
        };
    }
}